<?php
declare (strict_types=1);

namespace app\admin\model\base;

use app\BaseModel;

/**
 * 菜单权限表
 */
class AdminMenu extends BaseModel
{

    /**
     * 获取菜单列表
     * @param array $where
     * @param string $field
     * @param string $orderby
     * @return array
     */
    public static function getList(array $where, string $field = '*', string $orderby = 'orderby asc'): array
    {
        //查询
        return self::field($field)->where($where)->order($orderby)->select()->toArray();
    }


}




